/**
 * User: ct/512799311@qq.com
 * Date: 2017/10/24 0024
 * Time: 下午 3:47
 *
 */
$(function(){
    console.log("...");
    $('#dowebok').fullpage({
        sectionsColor:['rgb(13, 165, 214)',' rgb(42, 181, 97)','rgb(222, 137, 16)','rgb(22, 186, 157)'],
        verticalCentered:true,
        navigation:true,
        afterLoad:function(link,position){//当某一页加载完后 调用
            console.log("link=" + link);
            console.log("position==" + position);
          //  console.log($('.section'));
            $('.section').removeClass("current");
            $('.section').eq(position - 1).addClass("current");
        }
    });
    setTimeout(function(){
        $('.section').eq(0).addClass("current");
    },100)
});